<?php

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
 */
use App\Http\Controllers;
use Illuminate\Support\Facades\Route;

Route::get('/user', [Controllers\UsersController::class, 'getUserList']);
// Route::get('/user/{id}', [Controllers\UsersController::class, 'index2']);
Route::post('/user/add', [Controllers\UsersController::class, 'addUser']);
Route::post('/register', [Controllers\UsersController::class, 'register']);
Route::post('/user/edit', [Controllers\UsersController::class, 'edit']);
Route::get('/userinfo', [Controllers\UsersController::class, 'userinfo']);
Route::get('/user/del/{id}', [Controllers\UsersController::class, 'del']);
Route::post('/fileupload', [Controllers\FilesController::class, 'upload']);
Route::get('/img/download/{filename}', [Controllers\FilesController::class, 'download']);
